package cn.zm.app.util;

public class Page {
	private int currentPageNo;
	private int totalCount;
	private int pageSize=5;
	private int totalPageCount;
	
	public int getCurrentPageNo() {
		return currentPageNo;
	}
	public void setCurrentPageNo(int currentPageNo) {
		this.currentPageNo = currentPageNo;
	}
	public int getTotalCount() {
		return totalCount;
	}
	
	public void setTotalCount(int totalCount) {
		if(totalCount==0)
			this.currentPageNo=0;
		this.totalCount = totalCount;
		this.totalPageCount=totalCount%pageSize==0?totalCount/pageSize:totalCount/pageSize+1;

	}
	
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getTotalPageCount() {
		return totalPageCount;
	}
	public void setTotalPageCount(int totalPageCount) {
		this.totalPageCount = totalPageCount;
	}
	
	
}
